# -*- coding: utf-8 -*-

import pygame,time,sys
import spites_game as game
import spites_menu as menu

pygame.display.init()
pygame.mixer.init()
pygame.font.init()

WIDTH,HEIGHT = (800,600)
SCREEN = pygame.display.set_mode([WIDTH,HEIGHT])
BGM = pygame.mixer.Channel(0)
BGS = pygame.mixer.Channel(1)
MXF = pygame.mixer.Channel(2)
SXF = pygame.mixer.Channel(3)

pygame.mouse.set_visible(False)

def qqq():
    sys.exit()

while True:
    m = menu.Main()
    while m.loop():
        pass
    if m.selection == 3: qqq()
    elif m.selection == 2: print('No options yet...')
    else: 
        g = game.Game(m.selection+1)
        while g.loop():
            pass
